%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  IFACsample.tex  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%                                                        %%%%%%%%%%%%%
%%%%%%%%%%  More information: see the header of IFACarticle.sty   %%%%%%%%%%%%%
%%%%%%%%%%                                                        %%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentstyle[twoside]{IFACarticle}

%% For those desperately looking for space, uncomment the next line
%\parskip 0pt

\newtheorem{theorem}{Theorem}
\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em
    T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}

\begin{document}

%% useful definition when preparing own reprints
\setcounter{page}{9}
\footernote{Presented at the last IFAC World Congress}

\title{SAMPLE LATEX ARTICLE WITH STYLE FILES FOR IFAC PROCEEDINGS}

\author{S. Balemi\\[2mm] 
Automatic Control Laboratory, 
Swiss Federal Institute of Technology (ETH),
8092 Z\"urich, Switzerland. E-mail: balemi@aut.ee.ethz.ch}

\abstract{Sample \LaTeX\ article using  Latex Style file created for 
proceedings according to formatting directions of the International
Federation of Automatic Control.}

\keywords{\LaTeX\  style files, Bibliography style files, IFAC proceedings.}

\maketitle
%% When uncommented, the next line removes page numbers and footernote
%\thispagestyle{empty}\pagestyle{empty}

\section*{INTRODUCTION}
This paper uses the style file {\tt IFACarticle.sty},
 created for \LaTeX\ in order to 
format an article according to the ``Instructions to Authors for the
Preparation  of Camera-Ready Manuscripts'' by Pergamon press.

The set of files provided with  {\tt IFAC\-article.sty} includes the
bibliography style file {\tt IFAC.bst}, and the present file, called
{\tt IFAC\-sample.tex}.

\section*{HOW TO USE THE LATEX STYLE  FILE {\tt IFACarticle.sty}}

This style file has been written so to allow, with very few changes,
the formatting of input that is suitable for the \LaTeX\ {\tt article}
style.
First,  the \verb+IFACarticle+  style file has to be
selected with a command of the form

\hspace{\mathindent}\verb+\documentstyle[]{IFACarticle}+

The main differences with the usual {\tt article.sty} pertain to some
definitions in the titlepage.
\begin{itemize}
\item After the name of the author, go to the next line with 
 \verb+\\[2mm]+ for the address.
\item the syntax for abstract is  \verb+\abstract{...}+ and not  
       \verb+\begin{abstract}...\end{abstract}+
\item the syntax for keywords follows the same syntax as that of the
      abstract: \verb+\keywords{...}+ 
\item   \verb+\maketitle+ comes after  title, abstract
      and keywords. 
\end{itemize}

In Fig.~\ref{fig-example} we can see an example for the definition of
the title page and of the main commands needed to compile a \LaTeX\
file with IFACarticle.sty.
Note that the title and the section headings must be typed in
capital letters.

\subsection*{Options}
The default font size is 9 points; however, the 10, 11 and 12 point
font sizes can be selected with the usual options \verb+10pt+,
\verb+11pt+ and \verb+12pt+.
The default format is two-column, and the one-column format is
obtained only by explicitly selecting the {\tt onecolumn} option.

The default page style has been redefined and is 
``\verb+headings+''.  The foot of the page can
be set with the command \verb+\footernote{TEXT}+, which causes
\verb+TEXT+ and the page number to appear at the bottom of the page. 
Giving the commands \verb+\thispagestyle{empty}+ and \verb+\pagestyle{empty}+
just after the \verb+\maketitle+ command removes any text from the
bottom of the page.

The article can then be printed directly on the mats provided by
the publisher. However, you may have to
adjust the position on the page coming from your printer using the commands 

\mbox{}\hspace{\mathindent}\verb+\addtolength{\oddsidemargin}{Xmm}+\\
\mbox{}\hspace{\mathindent}\verb+\addtolength{\topmargin}{Ymm}+.
 
You can use this style file also when submitting a paper: in this case,
you should choose the option {\tt 12pt} and {\tt onecolumn}.

\subsection*{Other Definitions}

Most changes resulting from the use of IFACarticle.sty should be
transparent. For instance,
captions for figures and tables have been modified. Caption of
tables, however, should be defined before the table item (see for
instace table~\ref{table}).

\begin{figure}[bht]
\begin{center}
\setlength{\unitlength}{0.0105in}%
\begin{picture}(242,150)(73,660)
\put( 75,660){\framebox(240,150){}}
\put(105,741){\vector( 0, 1){ 66}}
\put(105,675){\vector( 0, 1){ 57}}
\put( 96,759){\vector( 1, 0){204}}
\put(105,789){\line( 1, 0){ 90}}
\put(195,789){\line( 2,-1){ 90}}
\put(105,711){\line( 1, 0){ 60}}
\put(165,711){\line( 5,-3){ 60}}
\put(225,675){\line( 1, 0){ 72}}
\put( 96,714){\vector( 1, 0){204}}
\put( 99,724){\makebox(0,0)[rb]{\raisebox{0pt}[0pt][0pt]{\tenrm $\varphi$}}}
\put(291,747){\makebox(0,0)[lb]{\raisebox{0pt}[0pt][0pt]{\tenrm $\omega$}}}
\put(291,702){\makebox(0,0)[lb]{\raisebox{0pt}[0pt][0pt]{\tenrm $\omega$}}}
\put( 99,795){\makebox(0,0)[rb]{\raisebox{0pt}[0pt][0pt]{\tenrm $M$}}}
\end{picture}
\end{center}
\caption{This is a sample figure. The caption comes after the figure.}
\end{figure}
\nocite{TeX}

\begin{table}[hbt]
\caption{The caption comes before  the table.}
\label{table}
\begin{center}
\begin{tabular}{|c||c|c|}\hline
$\otimes$&0&1\\\hline\hline
0&0&1\\\hline
1&1&0\\\hline
\end{tabular}
\end{center}
\end{table}

\subsubsection*{Environments}
The environments for theorems, lemmas, {\em etc}\ldots{} can be
defined with the usual \LaTeX\  command
\verb+\newtheorem{..}{..}+ \cite{LaTeX,LaTeXD}.
The proof environment is already defined.

\begin{theorem}[Theorem name]
Consider the system
\begin{equation}
\begin{array}{rrr}
\dot x&=&A.x+B.u\\[2mm]
y&=& C.x+D.u
\end{array}
\end{equation}
If $A$ is stable, then the pair $\{A,B\}$ is stabilizable. Moreover,
this holds for any $B$.
\end{theorem}
\begin{proof}
The proof is trivial.
\end{proof}


\begin{figure}
\mbox{}\hrulefill
\begin{verbatim}
\documentstyle{IFACarticle}   
\begin{document}

\title{SAMPLE LATEX ARTICLE ..}
\author{Silvano Balemi\\[2mm] Automatic ...}
\footernote{Presented at ...}

\abstract{Sample \LaTeX\ article ...}
\keywords{\LaTeX\ style files, ...}

\maketitle

\section*{INTRODUCTION}

This paper ...

\bibliographystyle{IFAC}
\bibliography{bib-file}
\end{document}
\end{verbatim}
\mbox{}\hrulefill
\caption{Input used to produce this paper.}
\label{fig-example}
\end{figure}

\subsection*{Citing References}
You can use \BibTeX\ together with the bibliography style file {\tt IFAC\-.bst}
to format the references according to IFAC instructions.  The
bibliography style file takes advantage of definitions introduced by
Peter Williams for the family of harvard bibliography style files.
The references can be cited with the usual syntax ({\em e.g.\
\/}\verb+\cite{LaTeX,TeX}+, yielding the citation ``\cite{LaTeX,TeX}'') or
with the two new commands \verb+\citeasnoun{LaTeX}+ (yielding the
citation ``\citeasnoun{LaTeX}''), and \verb+\citeyear{LaTeX}+,
(yielding the citation ``\citeyear{LaTeX}'': useful when the author's name 
is already in the text before the citation). The three commands
support most options of the original command.

When you have the final version of your article, you can reduce the
number of final files in the following way. Run
\BibTeX\ on the \verb+*.aux+ file. This creates a \verb+*.bbl+ file: include this
into your \LaTeX\ source file at the place where you defined the
\verb+\bibliography{..}+ command  and comment this command out. 
Remove the \verb+*.bbl+ file.  Then, your \LaTeX\ file will include
all the necessary information about your bibliography and no
\verb+*.bbl+ or \verb+*.bib+ file will be needed.


\section*{CONCLUSIONS}
A sample article for publication in  the IFAC Proceedings has been 
presented.  It uses  the  \LaTeX\  style files  {\tt
IFAC\-article.sty}, which formats the article automatically according 
to IFAC instructions.

\nocite{TeX}

\bibliographystyle{IFAC}

%\bibliography{bib-file}  % commented if *.bbl file included, as seen below

%%%%%%%%%%%%%%%%% BIBLIOGRAPHY IN THE LaTeX file !!!!! %%%%%%%%%%%%%%%%%%%%%%%%
%% This is nothing else than the IFACsample.bbl file that you would          %%
%% obtain with BibTeX: this way, you do not need a separate *.bbl file       %%
%%---------------------------------------------------------------------------%%
\begin{thebibliography}{xx}
\harvarditem[Knuth]{Knuth}{1989}{TeX}
Knuth, D.  (1989). {\em The {\rm
  T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}book}. Addison-Wesley.
\harvarditem[Kopka]{Kopka}{1989}{LaTeXD}
Kopka, H.  (1989). {\em \LaTeX, eine Einf\"uhrung}. Addison-Wesley.
\harvarditem[Lamport]{Lamport}{1986}{LaTeX}
Lamport, L.  (1986). {\em A Document Preparation System: \LaTeX, User's Guide
  and Reference Manual}. Addison Wesley Publishing Company.
\end{thebibliography}
%
%%---------------------------------------------------------------------------%%

\end{document}

%%%%%%%%%%%%%%%%%%%%%%%%%% End of IFACsample.tex  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
